#SS=-src
SS=
SOURCES=main.tex \
		defs.tex \
		refs.bib

.PHONY: clean withbib

trickery.pdf: $(SOURCES)
	pdflatex $(SS) main
	pdflatex $(SS) main
withbib: $(SOURCES)
	pdflatex $(SS) main
	bibtex main
	pdflatex $(SS) main
	pdflatex $(SS) main
	pdflatex $(SS) main
clean:
	rm -f *.toc *.aux *.bbl *.lot *.lof *.brf *.out
	find . -name '*.aux' -exec rm -f {} \;
	find . -name '*.bbl' -exec rm -f {} \;
	find . -name '*.blg' -exec rm -f {} \;
	find . -name '*.log' -exec rm -f {} \;

